import request from '@/utils/request'

export function getInventoryList (params) {
  return request({
    url: '/api/inventory/list',
    method: 'get',
    params
  })
}

export function replenishInventory (data) {
  return request({
    url: '/api/inventory/replenish',
    method: 'post',
    data
  })
}

export function getInventoryDetail (goodsId, machineId) {
  return request({
    url: '/api/inventory/detail',
    method: 'get',
    params: { goodsId, machineId }
  })
}